package com.earthquake.monitor_system.service.ITF;

import com.earthquake.monitor_system.controller.resultType.Pagination;
import com.earthquake.monitor_system.controller.resultType.UserInfoType;
import com.earthquake.monitor_system.domain.UserDomain;
import com.earthquake.monitor_system.utils.successCode.ImageCaptchaResult;

import java.io.IOException;
import java.util.List;

public interface IUser {
    public List<UserDomain> getUser();
    public Boolean register(String username,String password,String phone);
    public List<UserInfoType> login(String username, String password, String code);
    public Boolean isExistUserName(String username);
    public ImageCaptchaResult successCode() throws IOException;
    public UserInfoType getById(int id);
    public Object queryUserInfoList(Pagination pagination);
    public Boolean deleteById(String id);
    public Boolean changePassword(String password,String userName,String phone);
    public Boolean  uploadAvatar(String avatar,String id);
    public Boolean changeUserInfo(UserDomain UserDomain,String token);
}
